package com.demo.web;

import java.util.List;
import java.util.Map;

import com.demo.server.BbsServer;
import com.jweb.annotaion.JAutowired;
import com.jweb.annotaion.JController;
import com.jweb.core.handle.Controller;

/**
 * Ajax请求
 * 
 * @author Yuan
 */
@JController("/ajax")
public class AjaxController extends Controller {

	@JAutowired
	public BbsServer server;

	public void ajaxAddBBS() throws InterruptedException {
		List<Map<String, String>> listType = server.listBbsType();
		setAttr("bbsType", listType);
	}

	public void ajaxLogin() {

	}

	public void ajaxUserInfo() {

	}

}
